import request from '@/utils/request'

// 查询商品价格调控列表
export function listProductPriceControl(query) {
  return request({
    url: '/gather/gather/productPriceControl/list',
    method: 'get',
    params: query
  })
}

// 查询商品价格调控详细
export function getProductPriceControl(id) {
  return request({
    url: '/gather/gather/productPriceControl/' + id,
    method: 'get'
  })
}

// 新增商品价格调控
export function addProductPriceControl(data) {
  return request({
    url: '/gather/gather/productPriceControl',
    method: 'post',
    data: data
  })
}

// 修改商品价格调控
export function updateProductPriceControl(data) {
  return request({
    url: '/gather/gather/productPriceControl',
    method: 'put',
    data: data
  })
}

// 删除商品价格调控
export function delProductPriceControl(id) {
  return request({
    url: '/gather/gather/productPriceControl/' + id,
    method: 'delete'
  })
}
